import java.io.IOException;
public class Calc  {
    public static void main (String args[]){
        try {
            CalczOperator calczoperator = new CalczOperator();
            String[] prt = new String[args.length];
            for(int i =0;i<args.length;i++){
                prt[i] = args[i];
            }
            String str = prt[0]+" "+prt[1]+" "+prt[2];
            int result = calczoperator.operate(str);
            System.out.println(str + " = " + result);
        }
        catch (IOException e){
            System.out.println("error");
        }
    }
}

